/**
*vol还是100是最大
*/
package kgame5.kmedia.xplayer {

public class XPlayer implements IXPlayerListener{
	//public function init(){};//执行初始化的时候需要的一些操作
	
	public function getState():int{return -1;};//返回当前状态
	//
	public function startLoad():void{};//启动加载
	
	public function getFileUrl():String{return null;};
	
	public function getBytesLoaded():int{return -1;};
	public function getBytesTotal():int{return -1;};
	public function getLoading():Number{return -1;};//返回下载的百分比
	
	public function isPlaying():Boolean{return false;};
	public function IsPlayComplete():Boolean{return false;}
	public function IsError():Boolean{return false;}
	
	public function pause():void{};
	public function resume():void{};
	public function stop():void{};
	
	public function seek(time:Number):void{};//这个不一定真正要你实现
	
	public function getLength():Number{return -1;};
	public function getPosi():Number{return -1;};
	public function getDur():Number{return -1;};
	//取得播放的进度
	public function getPlaying():Number{return -1;};
	
	public function getVol():Number{return -1;};//100是最大
	public function setVol(vol:Number):void{};
	
	public function startFadeout():void{};//启动声音淡出
	
	public function startFadeIn(aim:Number):void{};//声音淡入，从0~指定目标
	//public function resumePreVolume();//声音淡出完毕后启动恢复之前的声音
	
	public function close():void{};
	
	//实现这个类的子类要有对Player2Listener的发出播放完毕或者是连接异常的事件
	//OnPlayerComplete(),OnPlayerFail()
	public function addListener(l:IXPlayerListener):void{};
	
	
	//实现IPlayerListenr接口
	public function OnPlayComplete(){};
	public function OnPlayerLoadResult(success:Boolean){};
	public function OnPlayerLoadInit(){};
	public function OnPlayerError(){};
	
}//end of class
}